const plugins = [
    ["import",
        {
        "libraryName": "vant",
        "libraryDirectory": "es",
        "style": true
       }
    ],
    [
        "component",
        {
            "libraryName": "element-ui",
            "styleLibraryName": "theme-chalk"
        }
    ],
    ["import",
        {
            "libraryName": "ant-design-vue",
            "libraryDirectory": "es",
            "style": true
        },
        'second'
    ],
]

// 生产环境移除console
if(process.env.NODE_ENV === 'tong') {
    // plugins.push(["transform-remove-console", { "exclude": [ "error", "warn"] }])
}
module.exports = {
    "presets": [
        [
            "@vue/app",
            { "useBuiltIns": "entry" }
        ]
    ],
    // "plugins": plugins
    "plugins": plugins
};
